package o;

import com.huawei.appgallery.assistantdock.base.externalaction.openviewaction.OpenViewActionRegistry;
import com.huawei.appgallery.forum.base.api.IUserStateChange;
import com.huawei.appgallery.forum.base.api.IUserStateChange.d;
import com.huawei.appgallery.forum.user.api.OpenLoginCheckerAction;
import com.huawei.appgallery.forum.user.api.OpenNickNameCheckerAction;
import com.huawei.appgallery.forum.user.api.OpenRealNameCheckerAction;
import com.huawei.appgallery.forum.user.https.FollowUserResponse;
import com.huawei.appgallery.forum.user.usercenter.bean.ForumCommentCardBean;
import com.huawei.appgallery.forum.user.usercenter.bean.ForumFollowUserCardBean;
import com.huawei.appgallery.forum.user.usercenter.bean.ForumUserHeadCardBean;
import com.huawei.appgallery.forum.user.usercenter.node.ForumCommentNode;
import com.huawei.appgallery.forum.user.usercenter.node.ForumFollowUserNode;
import com.huawei.appgallery.forum.user.usercenter.node.ForumUserHeadNode;
import com.huawei.appgallery.foundation.ui.framework.fragment.LoadingFragment;

public class cba extends fhy {

    static class e implements d {
        private e() {
        }

        public void ॱ(int i) {
            bqx.ˊ("UserDefine", "onChang");
            cbd o_cbd = (cbd) fho.ˏ().ˋ("User").ॱ(cbd.class);
            if (o_cbd == null) {
                bqx.ˊ("UserDefine", "getPersonInfo is null");
            } else if (i == 1) {
                bqx.ˊ("UserDefine", "logout success");
                o_cbd.ˋ();
            } else if (i == 0) {
                bqx.ˊ("UserDefine", "login success");
                o_cbd.ˏ();
            }
        }
    }

    public void ˏ() {
        cjl.ˋ("user_loading_.fragment", LoadingFragment.class);
        brf o_brf = (brf) fho.ˏ().ˋ("Base").ॱ(brf.class);
        o_brf.ॱ("forumuserheadcard", ForumUserHeadNode.class, ForumUserHeadCardBean.class);
        o_brf.ॱ("forumcommentcard", ForumCommentNode.class, ForumCommentCardBean.class);
        o_brf.ॱ("forumfollowusercard", ForumFollowUserNode.class, ForumFollowUserCardBean.class);
        cfw.ˊ(cbg.METHOD, FollowUserResponse.class);
        ((IUserStateChange) fho.ˏ().ˋ("Base").ॱ(IUserStateChange.class)).ˊ("User", new e());
        OpenViewActionRegistry.register(OpenLoginCheckerAction.ACTION, OpenLoginCheckerAction.class);
        OpenViewActionRegistry.register(OpenRealNameCheckerAction.ACTION, OpenRealNameCheckerAction.class);
        OpenViewActionRegistry.register(OpenNickNameCheckerAction.ACTION, OpenNickNameCheckerAction.class);
    }
}
